<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport"
			content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<title>废料收料 - 表单页面</title>
		<link rel="stylesheet" href="../../css/base.css" />
		<link rel="stylesheet" href="../../css/index.css" />
		<style type="text/css">
			.btn-submit {
				display: block;
			}

			.newtextStyle {
				width: 97% !important;
				box-sizing: border-box;
			}

			.textBox p {
				padding-top: 6px !important;
			}

			.btn-submit {
				padding-top: 5%;
				padding-bottom: 5%;
			}

			@media screen and (max-width: 380px) {
				.textBox {
					width: 100%;
					margin: 0 auto;
					padding-top: 40px;
				}

				.textBox p {
					text-align: left;
					font-size: 14px;
					color: #fff;
					padding-top: 6px;
					padding-bottom: 5px;
					line-height: 24px;
					text-indent: 8px;
				}

				.listyle {
					width: 80%;
					left: 10%;
				}
			}
		</style>
		<script type="text/javascript">
			var type1Value = 1;
			var zhongl = 1;
		</script>
	</head>
	<body>
		<div class="header" style="z-index:999;">
			<span onclick="api.closeWin();" class="goBack">返回</span>废料收料
			<span class="code" id="scode" onclick="sjerweima()"><i
					class="H-iconfont H-icon-scanning H-font-size-28 H-vertical-middle"></i></span>
		</div>
		<div class="fingerprint bg-ybzck">
			<div class="textBox" id="sl22jcc">
				<ul>
					<li style="margin-top:10px;">
						<span style="line-height:30px; color:#fff;">
							<input type="radio" class="textStyle" name="type1" id="fs4" style="width:26px;"
								onclick="type1Value = 4;erweima('CZT');jw.scan_trim()" value="4" /><label
								for="fs4">废料收料</label>
						</span>
					</li>
					<li class="listyle">
						<p>物资种类(扫描桶带出.)</p>
						<select class="newtextStyle textStyle" name="wuziType" id="wuziTypeId">
							<!-- <option value="0">请选择</option>
							<option value="油渣料">油渣料</option>
							<option value="铝沫铝饼">铝沫铝饼</option>
							<option value="炉渣">炉渣</option>
							<option value="初加工铝沫">初加工铝沫</option>
							<option value="其他">其他</option> -->
						</select>
					</li>
					<li class="listyle">
						<p>扫描操作工二维码</p>
						<input type="text" readonly="readonly" class="newtextStyle textStyle" name="YG" id="YG"
							onclick="erweima('YG')" />
					</li>
					<li class="listyle">
						<p>称重桶号</p>
						<input type="text" readonly="readonly" class="newtextStyle textStyle" name="CZT" id="CZT"
							onclick="erweima('CZT')" />
					</li>
					<li class="listyle">
						<p>重量(KG)</p>
						<input type="number" class="newtextStyle textStyle" name="ZL" id="ZL" onclick=" zhongl = 0;" />
					</li>
				</ul>
			</div>
			<p class="btn-submit">
				<!-- "db.openWin({ url: '../peiliaolist/peiliaolist_body.html' })" -->
				<input type="button" value="记录" class="btn btn2"
					onclick="db.openWin({ url: '../flsllist/flsllist_body.html' })" style="width: 90px;" />
				<!-- <input type="button" value="日志" class="btn btn2" onclick="$('.kjjjskxjjx').show();" style="width: 90px;" /> -->
				<input type="submit" value="提交" class="btn btn2" id="but" onclick="submitFlt();" style="width: 90px;" />
			</p>
		</div>
		<script src="../../script/base/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../script/layer/layer.js"></script>
		<script src="../../script/base/H.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../script/base/api1.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../script/DbHelper.js" type="text/javascript" charset="utf-8"></script>
		<script src="flsl.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				window.setInterval(function() {
					if (zhongl == 0) {
						$("body").css("padding-top", "25px");
						$("#sl22jcc").css("padding-top", "80px");
					}
				}, 1000);
			})
		</script>
		<script type="text/javascript">
			$(function() {
				window.setInterval(function() {
					//获取物资列表
					db.ajax(function (response, err) {
						alert('1111')
						alert(response)
						if (!db.dfc(response)) return;

						var data = eval('(' + response + ')');
						alert(data)
						if(data.ds1[0].status == '000000'){
							var optionList = data.ds;//接口获取到的list
							var option= '';
							for (var i=0;i<optionList.length;i++){
								option += "<option value=\""  + optionList[i].FWuziTypeID + "\">" +             
								optionList[i].FWuziType + "</option>";
								$("#wuziTypeId").html("<option value=''  >请选择</option>"+option);
							}
						}
					}, "getWuziTypes", "post", {
					}, { title: '提示', text: '获取物资列表...' });
				}, 60000);
			})
		</script>
	</body>
</html>
